//
//  petTableViewCell.m
//  A1.0
//
//  Created by lanou3g on 15-3-31.
//  Copyright (c) 2015年 ccandxx. All rights reserved.
//

#import "petTableViewCell.h"

@implementation petTableViewCell

- (void)awakeFromNib {
    

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
+ (CGFloat)cellFloatWithModel:(petModel *)model
{
    //label自适应
    //CGRect rect = [model.original boundingRectWithSize:CGSizeMake([UIScreen mainScreen].bounds.size.width - 20, 2000) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:17.0f]} context:nil];
    
    //CGFloat h =  rect.size.height;
    
    CGRect rx = [ UIScreen mainScreen ].bounds;
    
    CGFloat  h =  (model.height *( rx.size.width - 20) / model.width) + 70;
    
    
    return h;

}
@end
